# x = int(input())
# a = 2/3
# sum = 0
# for i in range(0,x):
#     sum += int(a*10)
#     a*=10
# print(sum)

n = int(input())
result = 0
for i in range(1, n + 1):
    temp = int('6' * i)
    print(temp)
    result += temp
print(result)